package com.laoluo.erp.myBatis;

public class MySQLDialect extends Dialect {
	
	@Override
	public String getLimitString(String sql, int offset,int limit) {
        if (offset > 0) {   
        	return sql + " limit "+String.valueOf(offset)+","+String.valueOf(limit); 
        } else {   
            return sql + " limit "+String.valueOf(limit); 
        }  
	}
}
